package dev.loong.boot3.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@RequestMapping("/login")
public class LoginController {
    // 登录页面
    @GetMapping("/page")
    public ModelAndView page() {
        return new ModelAndView("login/page");
    }
    // 欢迎页面
    @GetMapping("/welcome")
    public ModelAndView welcome() {
        return new ModelAndView("login/welcome");
    }
}
